package com.lhh.userservice.service;

import com.lhh.springcommon.entity.Like;
import org.springframework.stereotype.Service;

/**
 * @author 李厚航
 * @date 2025-03-01 22:02
 */
public interface UserLikeService {

    /**
     * 添加或取消点赞
     * @param like
     * @return
     */
    Boolean addOrDeleteLike(Like like);

    /**
     * 判断是否点赞
     * @param uid
     * @param vid
     * @return
     */
    Boolean isLike(Integer uid,Integer vid);

    /**
     * 获取点赞数
     * @param vid
     * @return
     */
    Long countLike(Long vid);
}
